package stool.statepattern;

/**
 * @Author Felix YF Dong
 * @Date 2021/5/8
 */
public class NoonState extends State{

    private static final int time = 13;

    @Override
    public void work(Work work) {
        if (time < work.getHour()) {
            System.out.println("中午工作。");
        }
    }
}
